[INFO] cloning repository https://github.com/foundoulis/market_sim
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/foundoulis/market_sim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffoundoulis%2Fmarket_sim", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffoundoulis%2Fmarket_sim'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5fc832f33e3031d30390ec9b8faadb2054787eef
[INFO] building foundoulis/market_sim against master#881c1ac408d93bb7adaa3a51dabab9266e82eee8 for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffoundoulis%2Fmarket_sim" "/workspace/builds/worker-7/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/foundoulis/market_sim on toolchain 881c1ac408d93bb7adaa3a51dabab9266e82eee8
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/foundoulis/market_sim
[INFO] finished tweaking git repo https://github.com/foundoulis/market_sim
[INFO] tweaked toml for git repo https://github.com/foundoulis/market_sim written to /workspace/builds/worker-7/source/Cargo.toml
[INFO] crate git repo https://github.com/foundoulis/market_sim already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cd06b78a6cb948cfb0ecd5dcf163e6cc57836e94cb43bf18116054035edb170e
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "cd06b78a6cb948cfb0ecd5dcf163e6cc57836e94cb43bf18116054035edb170e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cd06b78a6cb948cfb0ecd5dcf163e6cc57836e94cb43bf18116054035edb170e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cd06b78a6cb948cfb0ecd5dcf163e6cc57836e94cb43bf18116054035edb170e", kill_on_drop: false }`
[INFO] [stdout] cd06b78a6cb948cfb0ecd5dcf163e6cc57836e94cb43bf18116054035edb170e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7f27ebfe52e21bc1980c1db820d1293ddc06cd977e4d5d81a0178bc45423f66e
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "7f27ebfe52e21bc1980c1db820d1293ddc06cd977e4d5d81a0178bc45423f66e", kill_on_drop: false }`
[INFO] [stderr]    Compiling bitflags v0.4.0
[INFO] [stderr]    Compiling encode_unicode v0.1.3
[INFO] [stderr]    Compiling rand v0.4.2
[INFO] [stderr]    Compiling nix v0.5.1
[INFO] [stderr]    Compiling rustyline v1.0.0
[INFO] [stderr]    Compiling market-sim v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unknown lint: `unused_lints`
[INFO] [stdout]  --> src/main.rs:1:10
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![allow(unused_lints)]
[INFO] [stdout]   |          ^^^^^^^^^^^^ help: did you mean: `unused_mut`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unknown_lints)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope
[INFO] [stdout]   --> src/prediction/markov.rs:55:25
[INFO] [stdout]    |
[INFO] [stdout] 55 |                 let r = thread_rng().gen::<u32>() % (total_weight + value);
[INFO] [stdout]    |                         ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 2  | use minority::strategy::thread_rng;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/prediction/markov.rs:33:66
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl<T: Ord + Copy> Markov<T> {
[INFO] [stdout]    |      - this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 33 |                         self.map.get(&first_key).unwrap().insert(&second_key, value + 1);
[INFO] [stdout]    |                                                                  ^^^^^^^^^^^
[INFO] [stdout]    |                                                                  |
[INFO] [stdout]    |                                                                  expected type parameter `T`, found `&T`
[INFO] [stdout]    |                                                                  help: consider removing the borrow: `second_key`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type parameter `T`
[INFO] [stdout]                    found reference `&T`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/prediction/markov.rs:35:66
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl<T: Ord + Copy> Markov<T> {
[INFO] [stdout]    |      - this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 35 |                         self.map.get(&first_key).unwrap().insert(&second_key, 1);
[INFO] [stdout]    |                                                                  ^^^^^^^^^^^
[INFO] [stdout]    |                                                                  |
[INFO] [stdout]    |                                                                  expected type parameter `T`, found `&T`
[INFO] [stdout]    |                                                                  help: consider removing the borrow: `second_key`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type parameter `T`
[INFO] [stdout]                    found reference `&T`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/prediction/markov.rs:39:38
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl<T: Ord + Copy> Markov<T> {
[INFO] [stdout]    |      - this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 39 |                     new_value.insert(&second_key, 1);
[INFO] [stdout]    |                                      ^^^^^^^^^^^
[INFO] [stdout]    |                                      |
[INFO] [stdout]    |                                      expected type parameter `T`, found `&T`
[INFO] [stdout]    |                                      help: consider removing the borrow: `second_key`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type parameter `T`
[INFO] [stdout]                    found reference `&T`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/prediction/markov.rs:40:37
[INFO] [stdout]    |
[INFO] [stdout] 40 |                     self.map.insert(&first_key, new_value);
[INFO] [stdout]    |                                     ^^^^^^^^^^
[INFO] [stdout]    |                                     |
[INFO] [stdout]    |                                     expected struct `Vec`, found `&Vec<T>`
[INFO] [stdout]    |                                     help: consider removing the borrow: `first_key`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<T>`
[INFO] [stdout]            found reference `&Vec<T>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/prediction/markov.rs:47:27
[INFO] [stdout]    |
[INFO] [stdout] 47 |         if values.len() < self.step_size {
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^ expected `usize`, found `u32`
[INFO] [stdout]    |
[INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
[INFO] [stdout]    |
[INFO] [stdout] 47 |         if values.len() < self.step_size.try_into().unwrap() {
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/prediction/markov.rs:53:17
[INFO] [stdout]    |
[INFO] [stdout] 53 |             for (key, value) in map {
[INFO] [stdout]    |                 ^^^^^^^^^^^^    --- this expression has type `&BTreeMap<T, u32>`
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 expected struct `BTreeMap`, found tuple
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `BTreeMap<T, u32>`
[INFO] [stdout]                found tuple `(_, _)`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `market-sim`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "7f27ebfe52e21bc1980c1db820d1293ddc06cd977e4d5d81a0178bc45423f66e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7f27ebfe52e21bc1980c1db820d1293ddc06cd977e4d5d81a0178bc45423f66e", kill_on_drop: false }`
[INFO] [stdout] 7f27ebfe52e21bc1980c1db820d1293ddc06cd977e4d5d81a0178bc45423f66e
